package lab02.test19;

/**
 * Created by JAVA on 2017/10/29.
 */
public class Test {
    public static void main(String[] args) {
//19、 编写一个程序，实现字符串的大小写转换并倒序输出，
// 如输入为“HelloWord”，输出为“DROwOLLEH”。
        String result = "HelloWorld";
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i< result.length();i++){
            char result1 [] = new char[result.length()];
            result1[i] = result.charAt(result.length()-1-i);

            stringBuffer.append(result1[i]);

        }
            System.out.println(stringBuffer.append(""));
        }
    }
